<?php

namespace Module\AdminApi\Admin\Controller;

use Illuminate\Routing\Controller;
use ModStart\Admin\Layout\AdminConfigBuilder;

class ConfigController extends Controller
{
    public function index(AdminConfigBuilder $builder)
    {
        $builder->pageTitle('管理对接API');
        $builder->text('AdminApi_Key', '对接Key')
            ->help('对接Key需要严格保密，泄漏将会导致数据不安全 <a href="javascript:;" onclick="$(\'[name=AdminApi_Key]\').val(MS.util.randomString(32));">随机生成</a>');
        $builder->formClass('wide');
        return $builder->perform();
    }

}
